<%@ page language="java" import="java.util.*" pageEncoding="utf-8"   isELIgnored="false"%>
<%@ taglib  prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
	<title>IT园欢迎您！</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta name="Keywords" content="">
	<meta name="description" content="">
	<link href="css/user.css" rel="stylesheet" type="text/css">
	<script src="js/jquery-1.10.2.min.js"></script>
	<script src="js/formatStrToDate.js"></script>
	<script type="text/javascript">
			var startPos = -10;
			$(function(){
				showMoreSign();
			});
			
			function showMoreSign(){
			startPos +=10;
				$.post('user/sign/signListByUserId',
						{"startPos":startPos},
						function(data,status){
							var cLi = "";
							if(data != null && data !=''){
								for(var i=0;i<data.length;i++){
									cLi +="<li><div class=\"list-content\">"+data[i].signContent+"</div><div class=\"list-date\">"+formatDate(data[i].createDate)+"</div></li>"
								}
							$('.per-ss-list ul').append(cLi);
							}else{
								$('.per-ss-list ul').append('没有更多动态了...');
							}
						}
					);
			}
	</script>
	
  </head>
<body>
		 	<div class="per-ss-list">
						<ul></ul>
						<div class="click-more">
						 	<a href="javascript:void(0);" onclick="showMoreSign();">点击查看更多...</a>
						 </div>
			 </div>
</body>
</html>
